#pragma once
#include "clientfull.h"

/*
clasa Administrator este un utilizator care poate crea, sterge conturi
de utilizatori si modifica permisiunile
celorlati utilizatori in arborele director al serverului LDAP
...aceasta clasa are facilitatile unui utilizator complet la care se adauga cateva
metode de management al utilizatorilor..
*/

class Administrator :
	public ClientFull
{

	char *opt[10];

public:

	Administrator(char *CN,char **DN,int DN_level);

	~Administrator(void);

	void Bind(char *User_name,char *Password);

	void createAccount(char *id_user,char *parola,char *user_mail);

	void deleteAccount(char *id_user);

	int searchAccount(char *id_user);

	void addEntry(char *dn,int auth_type,char *passWord,char **optiuni,int nr_opt,vector<Atribut<char*>> atribute);

	void DeleteEntry(char *dn,int auth_type,char *passWord,char **optiuni,int nr_opt,vector<Atribut<char*>> atribute);

};


